package org.lagou.bean;

import org.apache.dubbo.config.annotation.Reference;
import org.lagou.service.HelloService;
import org.springframework.stereotype.Component;

/**
 * @author junbao
 */
@Component
public class ConsumerComponet {

    //@Reference(loadbalance = "roundrobin")
    //@Reference(loadbalance = "onlyFirst")
    @Reference
    private HelloService helloService;

    public String sayHello(String name, int timeToWait) {
        return helloService.sayHello(name, timeToWait);
    }

}
